﻿<Views:WindowBase x:Class="SharpTalk.Client.WpfApplication.Views.DialogMessageView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Resources="clr-namespace:SharpTalk.Client.WpfApplication.Resources"
        xmlns:Views="clr-namespace:SharpTalk.Client.WpfApplication.Views" 
        xmlns:Controls="clr-namespace:SharpTalk.Client.WpfApplication.Controls"
        d:DesignHeight="238" d:DesignWidth="443" 
        SizeToContent="WidthAndHeight"
        MinWidth="300"
        Style="{StaticResource MessageViewStyle}" 
        Title="{Binding Title}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <Image Margin="5,5" Style="{StaticResource ImageStyleInfo}" VerticalAlignment="Center" Visibility="{Binding IsInfo, Converter={StaticResource BooleanToVisibilityConverter}}"/>
            <Image Margin="5,5" Style="{StaticResource ImageStyleAlert}" VerticalAlignment="Center" Visibility="{Binding IsError, Converter={StaticResource BooleanToVisibilityConverter}}"/>
            <TextBlock Text="{Binding Message}" VerticalAlignment="Center" HorizontalAlignment="Stretch" TextWrapping="Wrap" Margin="10" MaxWidth="350"/>
        </StackPanel>

        <Controls:DialogActionsPanel
            Grid.Row="1" 
            Grid.ColumnSpan="2"
            HorizontalAlignment="Right"
            VerticalAlignment="Bottom"
            ShowButtonOk="{Binding ShowButtonOk}"
            ShowButtonCancel="{Binding ShowButtonCancel}"
            ShowButtonYes="{Binding ShowButtonYes}"
            ShowButtonNo="{Binding ShowButtonNo}"
            ButtonOkCommand="{Binding ValidateCommand}"
            ButtonOkIsDefault="True"
            ButtonYesCommand="{Binding ValidateCommand}"
            ButtonYesIsDefault="True"/>

        <!--<Controls:DialogResultControl
            Grid.Row="1" 
            Grid.ColumnSpan="2"
            HorizontalAlignment="Stretch"
            VerticalAlignment="Bottom" >
        </Controls:DialogResultControl>-->
    </Grid>
</Views:WindowBase>
